package com.zzxx.photograph.dao;

import com.zzxx.photograph.domain.FavoriteNum;
import com.zzxx.photograph.domain.Img;

import java.util.List;

public interface FavoriteDao {
    int findCountByIidAndUid(int iid, int uid);

    void insert(int iid, int uid);

    void delete(int iid, int uid);

    List<Integer> findIidByUid(int uid);

    int favoriteCount(int iid);

    int findCountByIid();

    List<FavoriteNum> findIid(int start, int pageSize);

    void deleteFavoriteImg(Integer iid);
}
